import request from '@/utils/request'

// 查询场馆闭馆规则列表
export function listClosingslot(query) {
  return request({
    url: '/venue/closingslot/list',
    method: 'get',
    params: query
  })
}

// 查询场馆闭馆规则详细
export function getClosingslot(closingId) {
  return request({
    url: '/venue/closingslot/' + closingId,
    method: 'get'
  })
}

// 新增场馆闭馆规则
export function addClosingslot(data) {
  return request({
    url: '/venue/closingslot',
    method: 'post',
    data: data
  })
}

// 修改场馆闭馆规则
export function updateClosingslot(data) {
  return request({
    url: '/venue/closingslot',
    method: 'put',
    data: data
  })
}

// 删除场馆闭馆规则
export function delClosingslot(closingId) {
  return request({
    url: '/venue/closingslot/' + closingId,
    method: 'delete'
  })
}
